package server;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

/**
 * Classe instanciant le serveur
 * @author Administrateur
 *
 */
public class Server {

	
	public static void main(String arg[]){
		try {
			
			ServerSCafeImpl srmi;
			srmi = new ServerSCafeImpl("StarCafe");
			LocateRegistry.createRegistry(8809);
			Naming.rebind("rmi://localhost:8809/Starcafe", srmi);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
